import request from '../utils/request'

// 获取轮播图数据
export function getBannerList () {
  return request.get('/banner/list')
}

// 删除轮播图数据
export function deleteOne (params) {
  return request.get('/banner/delete', { params })
}
// 删除所有的轮播图的数据
export function deleteAll (params) {
  return request.get('/banner/removeAll', { params })
}
// 添加轮播图数据
export function addItem (params) {
  return request.post('/banner/add', params)
}
